body,
p,
dl,
dd {
  margin: 0;
}
body {
  color: #000;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
}
.background {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  z-index: -3;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
th,
td {
  padding: 0;
}
button {
  padding: 0;
  border: none;
  cursor: pointer;
  background: none;
}
i {
  font-style: normal;
}

#calendar {
  width: 600px;
  height: 480px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 100px auto;
  border-radius: 16px;
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  border-radius: 10px;
}
#calendar .left {
  width: 480px;
  padding: 15px 15px 0;
  border: 2px solid;
  border-right: none;
  border-radius: 16px 0 0 16px;
}
#calendar.active .left {
  border-color: #da0463;
}
#calendar .right {
  width: 112px;
  background: rgba(64, 75, 105, 0.6);
  border-radius: 0 16px 16px 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
  backdrop-filter: blur(2px);
}
#calendar.active .right {
  background: #da0463;
}

/* topBar */
.topBar {
  display: flex;
  justify-content: space-between;
}
.select {
  height: 30px;
  box-sizing: border-box;
  border: 1px solid #d7d9e0;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  user-select: none; /* 禁止用户选中文字 */
  position: relative;
}
.yearSelect {
  width: 96px;
}
.selected {
  height: 28px;
  padding: 0 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.selected i {
  font-size: 14px;
  color: #9ba2a9;
  font-family: "YaHei";
  transform: scaleX(1.5) rotate(90deg);
}
.select.active {
  border-color: #a7aab5;
}
.select.active .selected i {
  color: #767e87;
  transform: scaleX(1.5) rotate(-90deg);
}
.selectBox {
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: #fff;

  padding: 9px 0 9px 16px;
  position: absolute;
  left: 0px;
  top: 38px;
  z-index: 10;

  display: none;
}
.select.active .selectBox {
  display: block;
}
.yearSelect .selectBox {
  max-height: 312px;
  overflow: hidden;
}
.selectBox li {
  height: 27px;
  line-height: 27px;
  cursor: pointer;
}
.selectBox li:hover,
.selectBox li.active {
  color: #6d54a5;
}
.scroll {
  width: 4px;
  position: absolute;
  top: 9px;
  bottom: 9px;
  right: 4px;
  /* background: #ccc; */
}
.scroll span {
  width: 100%;
  height: 30px;
  background: #6d54a5;

  position: absolute;
  top: 0;
  border-radius: 6px;
}

.montSelect {
  width: 148px;
  display: flex;
  justify-content: space-between;
}
.arrow {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.arrow span {
  font-size: 18px;
  color: #9c9fac;
  transform: scaleY(1.5);

  font-family: "YaHei";

  position: relative;
  top: -2px;
}
.montSelect .select {
  width: 80px;
}
.holidaySelect {
  width: 96px;
}
.topBar button {
  width: 68px;
  height: 30px;
  background: #f5f5f5;
  border-radius: 6px;
  color: #333;
}

/* 日期 */
.dateWrap {
  width: 100%;
  margin-top: 14px;

  border-spacing: 4px;
}
.dateWrap th {
  height: 36px;
  /* background: #ccc; */
  font-weight: normal;
}
.dateWrap td {
  width: 60px;
  height: 56px;
}
.dateWrap div {
  height: 100%;
  box-sizing: border-box;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  /* background: #ccc; */

  display: flex;
  flex-direction: column; /* 子元素竖着排 */
  justify-content: center;
  align-items: center;
  position: relative;
}
.dateWrap div:hover,
.dateWrap div.active {
  border-color: #bdbfc8;
}
.dateWrap div span:nth-child(1) {
  font-size: 18px;
  color: #000;
}
.dateWrap div span:nth-child(2) {
  font-size: 12px;
}
.dateWrap td:nth-child(n + 6) span:nth-child(1) {
  color: #da0463;
}
.dateWrap .holiday {
  background: #fde3e4;
}
.dateWrap .holiday:hover,
.dateWrap .holiday.active {
  border-color: #f38686;
}
.dateWrap .holiday::before,
.dateWrap .weekday::before {
  content: "休";
  font-size: 12px;
  line-height: 12px;
  color: #da0463;

  position: absolute;
  left: 4px;
  top: 4px;
}
.dateWrap .holiday span:nth-child(1) {
  color: #da0463;
}

.dateWrap .weekday {
  background: #f5f5f6;
}
.dateWrap .weekday::before {
  content: "班";
  color: #626675;
}
.dateWrap td .weekday span:nth-child(1) {
  color: #000;
}

.prevMonth,
.nextMonth {
  opacity: 0.4;
}

.dateWrap div.today {
  border-color: #6d54a5;
}
.dateWrap div.today.holiday {
  border-color: #da0463;
}

#calendar .date {
  line-height: 45px;
}
#calendar .day {
  width: 80px;
  height: 80px;
  margin: 0 auto 6px;
  line-height: 80px;
  font-size: 52px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}
#calendar .lunar {
  line-height: 21px;
}
#calendar .holidayList li {
  width: 112px;
  box-sizing: border-box;

  margin-top: 13px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 16px;
  text-align: left;
  position: relative;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#calendar .holidayList li::before {
  content: "";
  width: 3px;
  height: 3px;
  background: #fff;

  position: absolute;
  left: 5px;
  top: 6px;
  border-radius: 50%;
}
#calendar .suit {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  margin: 12px 0 -100px;
  padding: 12px 0 100px;
}
#calendar .suit .default {
  display: flex;
  justify-content: space-around; /* 分散居中对齐 */
}
#calendar .suit .default dl {
  max-height: 190px;
  overflow: hidden;
}
#calendar .suit .default dt {
  font-size: 24px;
}
#calendar .suit .default dd {
  line-height: 20px;
}
#calendar .suit .hover {
  width: 190px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333;
  padding: 16px;
  position: absolute;
  top: 0;
  right: -230px;
  display: none;
}
#calendar .suit:hover .hover {
  display: block;
}
#calendar .suit .hover dl {
  display: block;
  display: flex;
  justify-content: space-between;
}
#calendar .suit .hover dt {
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  background: #6d54a5;
  border-radius: 6px;
}
#calendar .suit .hover dd {
  width: 156px;
  text-align: left;
  line-height: 21px;
}
#calendar .suit .hover dl:nth-child(2) {
  margin-top: 15px;
}
#calendar .suit .hover dl:nth-child(2) dt {
  background: #da0463;
}
